package com.intelligentmeterreadingsys.checkwork.db;

import java.util.List;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.intelligentmeterreadingsys.BaseDao.BaseDao;

import dbhelper.DbTableName;

public class CheckWorkDao extends BaseDao{
	
	
     
	private SQLiteDatabase db;
	
	public CheckWorkDao(Context context) {
		super(context);
		this.db=super.getDb();
		
	}
	
	/**
	 * 添加用户类型、工程单类型名称
	 * @param list
	 * @return
	 */
	public boolean InsertAllType(List<ContentValues> list){
		boolean b=false;
		b=  super.insertALL(list, DbTableName.TYPE);
		
		return b;
		
	}
	
	/**
	 * 删除所有类型数据
	 * @return
	 */
	public boolean delectAllType(){
		return super.delectAll(DbTableName.TYPE);
	}
	
	/**
	 * 关闭连接
	 */
	public void close(){
		super.close();
	}

}
